package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @Author: xrl
 * @Date: 2022/10/21  19:30
 * @Version 1.0
 * 敏感词
 */
public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 查询敏感词列表
     * @param dto
     * @return
     */
    public ResponseResult getList(SensitiveDto dto);

    /**
     * 删除敏感词
     */
    ResponseResult deleteById(Integer id);

    /**
     * 添加敏感词
     */
    ResponseResult saveSensitive(WmSensitive wmSensitive);

    /**
     * 修改敏感词
     */
    ResponseResult updateSensitive(WmSensitive wmSensitive);
}
